package com.hedl.practice.diyJava.jsonAndXml.json.test;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDate;
import java.util.List;
import java.util.Map;

public class Book {
    public long id;
    public String name;
    public String author;
    public Map<String,Object> authors;

    // 表示反序列化isbn时使用自定义的IsbnDeserializer:
    @JsonDeserialize(using = IsbnDeserializer.class)
    public BigInteger isbn;

    public List<String> tags;
    public LocalDate pubDate;
    public BigDecimal price;
}
